import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' 

// 来自index.js,导入自己的路由模块
import router from '@/router'
// 导入自己的组件
import MyPlugin from '@/install'
Vue.use(MyPlugin)
// 导入axios，并挂载
import axios from '@/api'
// 导入全局样式
import '@/styles/index.less'
Vue.prototype.$http = axios

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
